/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.sys;

import com.thinkgem.jeesite.modules.hk.shop.entity.activity.HkShopSpecial;
import com.thinkgem.jeesite.modules.hk.shop.entity.product.HkShopProduct;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购轮播图Entity
 * @author 罗天文
 * @version 2018-05-16
 */
public class HkShopCarousel extends DataEntity<HkShopCarousel> {
	
	private static final long serialVersionUID = 1L;
	private String imgSrc;		// 图片地址
	private String imgRank;		// 图片序号
	private String state;		// 状态
	private String type;		// 类型
	private String model;		// 类型
	private Date beginDate;		// 开始时间
	private Date endDate;		// 结束时间
	private HkShopProduct product;		// 商品
	private HkShopSpecial special;		// 专题
	
	public HkShopCarousel() {
		super();
	}

	public HkShopCarousel(String id){
		super(id);
	}

	@Length(min=0, max=200, message="图片地址长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=11, message="图片序号长度必须介于 0 和 11 之间")
	public String getImgRank() {
		return imgRank;
	}

	public void setImgRank(String imgRank) {
		this.imgRank = imgRank;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=1, message="类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=1, message="类型长度必须介于 0 和 1 之间")
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public HkShopProduct getProduct() {
		return product;
	}

	public void setProduct(HkShopProduct product) {
		this.product = product;
	}
	
	public HkShopSpecial getSpecial() {
		return special;
	}

	public void setSpecial(HkShopSpecial special) {
		this.special = special;
	}
	
}